import { request } from "@/utils/request.js";

//获取手机验证码
export function getPhoneCode(data){
	return request('code',data);
}

export function register(data){
	return request('register',data,'POST');
}

export function login(data){
	return request('login',data,'POST')
}

export function forget(data){
	return request('forgetPassword',data,'POST')
}

export function logout(data){
	return request('logout',data,'POST')
}

export function info(){
	return request('member/0')
}

export function updataMember(data){
	return request('member/0',data,"PUT")
}

export function cashMoney(data){
	return request('cashMoney',data,"POST")
}

export function getCashMoney(data){
	return request('cashMoney',data)
}

export function getUserMoneyList(data){
	return request('userMoney',data)
}

export function getWxToken(data){
	return request('wechatToken',data)
}

export function getQrcode(){
  return request('getQrcode')
}

export function getContacts(){
	return request('getContacts')
}

export function getVipInfo(){
	return request('getVipInfo')
}

export function setPercentage(data){
	return request('setPercentage',data,"POST")
}

export function getAllTeam(){
	return request('getAllTeam')
}
